<?php echo $header; ?><?php echo $column_right; ?>
<div id="content" style="margin-left:0px;">
  <div class="top">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">
      <h1>Sản phẩm</h1>
    </div>
  </div>
  <div class="middle">
		<table class="sanpham" cellspacing="10" cellpadding="0">
            <?php for ($i = 0; $i < sizeof($categories); $i = $i + 2) { ?>
			<tr>
			<?php for ($j = $i; $j < ($i + 2); $j++) { ?>
			<?php if (isset($categories[$j])) { ?>
            <td>
			<h2><a href="<?php echo $categories[$j]['href']; ?>"><?php echo $categories[$j]['name']; ?></a></h2>
			<div class="image_home"><a href="<?php echo $categories[$j]['href']; ?>"><img src="<?php echo $categories[$j]['thumb']; ?>" /></a>
			</div>
			<?php if($categories[$j]['children']){ ?>
				<div id="list_sanpham"><ul>
				<?php foreach ($categories[$j]['children'] as $children) { ?>
					<li><a href="<?php echo $children['href']; ?>"><?php echo $children['name']; ?></a></li>
				<?php } ?>
				</ul></div>
			<?php } ?>
			</td>
			<?php } ?>
			<?php } ?>
			</tr>
			<?php } ?>
		</table>
  </div>
</div>
<?php echo $footer; ?> 